/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.gruposp2p.aula.gwt.client.model;

import java.io.Serializable;
//import java.math.BigDecimal;


/**
 *
 * @author jj
 */
public class Score implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;
    //private BigDecimal value;
    private Itemcalificable itemcalificableId;
    private Student studentId;

    public Score() {
    }

    public Score(Integer id) {
        this.id = id;
    }

    /*
    public Score(Integer id, BigDecimal value) {
        this.id = id;
        this.value = value;
    }*/

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /*
    public void setValue(BigDecimal value) {
        this.value = value;
    }

    public BigDecimal getValue() {
        return value;
    }*/
    
    public Itemcalificable getItemcalificableId() {
        return itemcalificableId;
    }

    public void setItemcalificableId(Itemcalificable itemcalificableId) {
        this.itemcalificableId = itemcalificableId;
    }

    public Student getStudentId() {
        return studentId;
    }

    public void setStudentId(Student studentId) {
        this.studentId = studentId;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Score)) {
            return false;
        }
        Score other = (Score) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "org.aula.databasemodel.entity.Score[id=" + id + "]";
    }

}
